﻿using System;

namespace IOPvsOOP.Status.NOIF
{
    public class PromocodeStatusNOIF
    {
        private Action alreadyUsed = () => { };
        private Action expired = () => { };
        private Action notValid = () => { };

        public PromocodeStatusNOIF AlreadyUsed(Action action)
        {
            alreadyUsed = action;
            return this;
        }

        public PromocodeStatusNOIF Expired(Action action)
        {
            expired = action;
            return this;
        }

        public PromocodeStatusNOIF NotValid(Action action)
        {
            notValid = action;
            return this;
        }

        public void Apply(string promocode)
        {
            expired();
        }
    }
}